from appengine_django.models import BaseModel
from google.appengine.ext import db

class Settings(db.Model):
	content_blog_id = db.StringProperty(required=True)
	order = db.StringProperty(required=True)

	def children(self):
	  q = Categories.all()
	  q.filter('parent_category =', '')
	  q.filter("height <", 72)
	  q.order("-height")


class Category(db.Model):
	url = db.StringProperty(required=True)
	parent_category = db.ReferenceProperty(Category)